<!DOCTYPE html>

<!-- saved from url=(0042)https://v3.bootcss.com/examples/dashboard/ -->
<html lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">
    <!--<link rel="icon" href="https://v3.bootcss.com/favicon.ico">
    <link rel="canonical" href="https://getbootstrap.com/docs/3.4/examples/dashboard/">-->

    <title>计划合并展示页面</title>
    {% load static %}
    <!-- Bootstrap core CSS -->
    <link href="{% static 'bootstrap-3.4.1-dist/css/bootstrap.css' %}" rel="stylesheet">

    <link href="{% static '/css/dashboard.css' %}" rel="stylesheet">


<body>

{% include 'templates/nav1.html' %}

<div class="container-fluid">
    <div class="row">
        <div class="col-sm-2 col-md-1 sidebar">
            <ul class="nav nav-sidebar">
                <li class="active"><a href="/plan/order_list/">工单列表 <span class="sr-only">(current)</span></a>
                </li>
                <li><a href="/plan/plan_list/">计划列表 <span class="sr-only">(current)</span></a></li>
                <li><a href="#"></a></li>
                <li><a href="#"></a></li>
            </ul>
            <ul class="nav nav-sidebar">
                <li class="active"><a href="/plan/order_list/">工单列表 <span class="sr-only">(current)</span></a>
                </li>
                <li><a href="/plan/plan_list/">计划列表 <span class="sr-only">(current)</span></a></li>
                <li><a href="#"></a></li>
                <li><a href="#"></a></li>
            </ul>

        </div>
        <div class="col-sm-10 col-sm-offset-2 col-md-11 col-md-offset-1 main">
            <div>
                <h2 class="sub-header">计划合并列表</h2>
            </div>
            <button class="btn btn-info pull-right"><a href="{% url 'add_order' %}?next={{ request.get_full_path }}">添加工单</a>
            </button>
            <form action="" method="get">
                <div class="col-md-3">
                    <div class="">
                        <input type="text" value="" name="query">
                        <input type="submit" class="btn btn-primary" value="搜索">
                    </div>

                </div>
            </form>

            <form action="" method="post">
                {% csrf_token %}
                <div class="row">
                    <div class="col-md-3">
                        <div>
                            <select name="action">
                                <option value="">----------</option>
                                <option value="to_total">合并</option>
                                <option value="delete">删除</option>
                            </select>
                            <button type="submit" class="btn btn-success"><small>提交</small></button>

                        </div>
                    </div>

                </div>

                <div class="table-responsive">
                    <table class="table table-striped table-hover">
                        <thead>
                        <tr>
                            <th style="width: 20px">选择</th>
                            <th>#</th>
                                                        <th>工程编号</th>
                            <th>客户</th>
                            <th>机种名</th>
                            <th>工单数量</th>
                            <th>生产数量</th>
                            <th>生产工程</th>
                            <th>线别</th>
                            <th>生产日期</th>
                            <th>班次</th>
                            <th>出荷日期</th>
                            <th>备注</th>
                            <th>负荷</th>
                            <th>切换</th>
                            <th>顺序</th>
                            <th>检查产能</th>
                            <th>检查时间</th>
                            <th>编辑</th>
                        </tr>
                        </thead>
                        <tbody>
                        {% for plan in plan_list %}
                            <tr style="font-size:smaller">
                                <td><input type="checkbox" name="cid" value="{{ plan.id }}"></td>
                                <td>{{ forloop.counter }}</td>
                                                                <td>{{ plan.plan_pro_code  }}</td>
                                <td>{{ plan.customer.small_name }}</td>
                                <td>{{ plan.sku.name }}</td>
                                <td>{{ plan.Lot }}</td>
                                <td>{{ plan.work_int }}</td>
                                <td>{{ plan.work_process }}</td>
                                <td>{{ plan.get_line_display }}</td>
                                <td>{{ plan.date_num|date:'Y-m-d' }}</td>
                                <td>{{ plan.get_work_num_display }}</td>
                                <td></td>
                                <td>{{ plan.memo|default:"" }}</td>
                                <td>{{ plan.working_hours }}</td>
                                <td>{{ plan.change_time }}</td>
                                <td>{{ plan.production_line_num }} &nbsp | <a href="{% url 'seq' plan.id %}">修改</a>
                                </td>
                                <td>{{ plan.check_production_cpa }}</td>
                                <td>{{ plan.check_time }}</td>
                                <td>编辑

                                </td>

                            </tr>
                        {% endfor %}


                        </tbody>
                    </table>
                    <div class="pull-right">{{ page_obj.page_html |safe }}</div>
                </div>
            </form>


        </div>
    </div>
</div>

<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="{% static 'bootstrap-3.4.1-dist/js/jquery3.6.4.min.js' %}"></script>
<script src="{% static 'bootstrap-3.4.1-dist/js/bootstrap.js' %}"></script>
{#<script>#}
{#    //点击按钮，发送ajax请求#}
{#        $('#id_sequence').on('change',function (){#}
{#            $.ajax({#}
{#                url:"/plan/sequence/",#}
{#                type:"get",#}
{#                data:{#}
{#                    'pid':$(this).val(),#}
{#                    'plan_id':'',#}
{#                    // 'password':$('#password').val(),#}
{#                    // 'code':$('#id_code').val(),#}
{#                    // 自己结合自己需求 合理选择#}
{#                    // 'csrfmiddlewaretoken':'{{ csrf_token }}'#}
{##}
{#                },#}
{#                // contentType:false,#}
{#                // processData:false,#}
{#                success:function (args){#}
{#                    if(args.code == 200){#}
{#                        //跳转到home页面#}
{#                        window.location.href = args.url#}
{#                    }else {#}
{#                        //渲染错误信息#}
{#                        $('#error').text(args.errmsg)#}
{#                    }#}
{##}
{#                }#}
{##}
{#            })#}
{#        })#}
{#</script>#}

</body>


<div id="transmart-crx-shadow-root" style="all: initial;">
    <template shadowrootmode="open">
        <div id="transmart-crx-app-container">
            <div id="transmartTrxPopupContainer" class="trans-ctx--container-popup react-draggable"
                 style="left: 20px; top: 25px; transform: translate(0px, 0px);">
                <svg class="trans-ctx--icon-trans" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg"
                     width="200" height="200">
                    <path d="M213.333 640v85.333a85.333 85.333 0 0 0 78.934 85.12l6.4.214h128V896h-128A170.667 170.667 0 0 1 128 725.333V640h85.333zM768 426.667 955.733 896h-91.946l-51.243-128H638.037L586.88 896h-91.904l187.69-469.333H768zM725.333 549.76l-53.205 132.907h106.325l-53.12-132.907zm-384-464.427v85.334H512v298.666H341.333v128H256v-128H85.333V170.667H256V85.333h85.333zm384 42.667A170.667 170.667 0 0 1 896 298.667V384h-85.333v-85.333a85.333 85.333 0 0 0-85.334-85.334h-128V128h128zM256 256h-85.333v128H256V256zm170.667 0h-85.334v128h85.334V256z"
                          fill="#fff"></path>
                </svg>
                <div class="trans-ctx--panel-result">
                    <div class="trans-ctx--container-title"><span class="trans-ctx--title-text" id="draggable-header">翻译结果</span><span><select
                            class="trans-ctx--selector-lang"><option value="ar">阿拉伯语</option><option
                            value="de">德语</option><option value="ru">俄语</option><option value="fr">法语</option><option
                            value="fil">菲律宾语</option><option value="km">高棉语</option><option
                            value="ko">韩语</option><option value="lo">老挝语</option><option value="ms">马来语</option><option
                            value="pt">葡萄牙语</option><option value="ja">日语</option><option value="th">泰语</option><option
                            value="tr">土耳其语</option><option value="es">西班牙语</option><option
                            value="it">意大利语</option><option value="hi">印地语</option><option
                            value="id">印度尼西亚语</option><option value="en">英语</option><option
                            value="vi">越南语</option><option value="ct">粤语</option><option
                            value="zh">中文</option></select><select class="trans-ctx--selector-lang"></select><span
                            class="trans-ctx--btn-more">查看更多结果</span><span title="打开设置"><svg
                            class="trans-ctx--icon-setting" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg"
                            width="200" height="200"><path
                            d="M913.94 431.828c-4.877-25.783-20.692-42.456-40.947-42.456h-3.512c-54.731 0-99.248-44.516-99.248-99.263 0-17.295 8.299-37.015 8.62-37.799 10.097-22.722 2.349-50.567-18.08-64.859l-102.7-57.183-1.51-.739c-20.546-8.91-48.667-3.207-63.987 12.754-11.087 11.434-49.307 44.038-78.472 44.038-29.543 0-67.849-33.258-78.992-44.91-15.293-16.076-43.124-22.112-63.902-13.217l-106.357 58.272-1.597 1.016c-20.43 14.234-28.207 42.078-18.165 64.714.346.828 8.676 20.387 8.676 37.914 0 54.747-44.517 99.263-99.247 99.263h-4.15c-19.618 0-35.434 16.672-40.309 42.456-.363 1.814-8.59 45.446-8.59 80.43 0 34.939 8.227 78.555 8.59 80.355 4.875 25.8 20.691 42.487 40.947 42.487h3.512c54.73 0 99.247 44.517 99.247 99.247 0 17.412-8.329 37.058-8.648 37.812-10.07 22.767-2.35 50.568 18.022 64.788l100.756 56.531 1.538.697c20.837 9.171 49.015 3.192 64.25-13.464 14.074-15.208 52.208-46.783 80.21-46.783 30.355 0 69.446 35.347 80.707 47.767 10.387 11.376 26.349 18.227 42.687 18.227 7.632 0 14.857-1.511 21.474-4.354l104.472-57.574 1.538-.99c20.429-14.276 28.207-42.077 18.139-64.727-.35-.842-8.678-20.403-8.678-37.929 0-54.73 44.517-99.247 99.248-99.247h4.094c19.644 0 35.488-16.687 40.365-42.487.348-1.8 8.588-45.416 8.588-80.355 0-34.986-8.24-78.618-8.588-80.432m-50.959 80.43c0 22.606-4.498 51.655-6.56 63.786-82.097 6.732-145.737 75.335-145.737 158.303 0 23.42 7.43 45.851 11.377 56.17l-89.121 49.216c-4.383-4.584-17.326-17.645-34.94-30.762-30.935-22.926-60.595-34.636-88.106-34.636-27.279 0-56.704 11.42-87.494 34.055-17.528 12.77-30.296 25.48-34.766 30.18l-85.724-47.996c4.179-10.84 11.405-32.983 11.405-56.227 0-82.968-63.64-151.571-145.708-158.303-2.09-12.13-6.588-41.18-6.588-63.786 0-22.651 4.498-51.714 6.588-63.844 82.068-6.718 145.708-75.336 145.708-158.304 0-23.288-7.429-45.793-11.376-56.095l91.326-50.19c3.976 3.976 17.006 16.73 34.823 29.412 30.356 21.663 59.261 32.633 86.016 32.633 26.495 0 55.196-10.766 85.347-32.01 17.963-12.623 30.964-25.202 34.736-28.757l87.901 48.825c-3.975 10.244-11.405 32.676-11.405 56.182 0 82.968 63.64 151.586 145.738 158.304 2.062 12.158 6.56 41.338 6.56 63.844"></path><path
                            d="M510.216 365.633c-80.53 0-146.057 65.528-146.057 146.058 0 80.543 65.528 146.043 146.057 146.043 80.53 0 146.057-65.5 146.057-146.043 0-80.53-65.527-146.058-146.057-146.058m86.51 146.058c0 47.693-38.8 86.492-86.51 86.492-47.709 0-86.48-38.799-86.48-86.492 0-47.666 38.771-86.48 86.48-86.48 47.71.001 86.51 38.814 86.51 86.48"></path></svg></span></span><span
                            title="关闭翻译结果面板"><svg class="trans-ctx--icon-close" width="30" height="30"
                                                          xmlns="http://www.w3.org/2000/svg"
                                                          viewBox="0 0 31.112 31.112"><path
                            d="M31.112 1.414 29.698 0 15.556 14.142 1.414 0 0 1.414l14.142 14.142L0 29.698l1.414 1.414L15.556 16.97l14.142 14.142 1.414-1.414L16.97 15.556"></path></svg></span>
                    </div>
                    <div class="trans-ctx--content">
                        <div class="trans-ctx--result-section">
                            <div class="trans-ctx--label">原文：</div>
                            <div class="trans-ctx--trs-content trans-ctx--source"></div>
                        </div>
                        <div class="trans-ctx--result-section">
                            <div class="trans-ctx--label">译文：</div>
                            <div class="trans-ctx--trs-content"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <link rel="stylesheet" href="chrome-extension://lkjkfecdnfjopaeaibboihfkmhdjmanm/static/css/content.css">
        <style type="text/css">
            ::-webkit-scrollbar-track-piece {
                position: absolute;
                background-color: #fff;
                border-radius: 0;
            }

            ::-webkit-scrollbar {
                width: 10px;
                height: 10px;
            }

            ::-webkit-scrollbar-thumb {
                height: 50px;
                background-color: #b8b8b8;
                border: 2px solid #fff;
                border-radius: 6px;
                outline: 2px solid #fff;
                outline-offset: -2px;
                -moz-opacity: 0.3;
                -khtml-opacity: 0.3;
                opacity: 0.5;
                filter: alpha(opacity=30);
            }

            ::-webkit-scrollbar-thumb:hover {
                height: 50px;
                background-color: #878987;
            }
        </style>
    </template>
</div>
</html>


